<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">   
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">   								
	<head> 
	    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />							
		<%@ include file="../jslib/jquerylib.jsp" %>
	    <script type="text/javascript" src="<%=request.getContextPath() %>/jslib/lhgdialog/lhgcore.lhgdialog.min.js?skin=mac"></script>
        <link href="<%=request.getContextPath() %>/web/style/layout.css" type="text/css" rel="stylesheet"/>
        <link rel="stylesheet" href="<%=request.getContextPath() %>/jslib/ztree/css/zTreeStyle/zTreeStyle.css" type="text/css"/>
        <script type="text/javascript" src="<%=request.getContextPath() %>/jslib/ztree/jquery.ztree.core-3.4.js"></script>
	       <!-- 删除结果信息返回 -->
	    	<c:if test="${requestScope.message!=null}">
				<script type="text/javascript">
	  	 		     alert('<c:out value="${requestScope.message}"></c:out>');
	  	 		     window.close();
	  			</script>
	        </c:if>
	 
	<script type="text/javascript">
	var mobanid = '';
	var ids = '';

	$(document).ready(function(){
			$("#gridTable").jqGrid({					
					url:'<%=request.getContextPath() %>/auto!queryAutoData.action?formid=${formid}&queryColumn=${queryColumns}&${queryContent}&temp='+Math.round(Math.random()*10000),
					datatype: "json",
					height: "400",
					width: '1000', 
					colNames:[${requestScope.colName}],
					colModel:[${requestScope.colModel}],
					shrinkToFit:false,
					sortname:'ID',
					sortorder:'desc',
					viewrecords:true,
					multiselect: true, // 是否显示复选框
					multiboxonly : true, 
					//gridview: true,  //提升速度
					rownumbers: true,//显示行号
					rownumWidth: 30, //行号的宽度
					rowNum:<%=session.getAttribute("SYS_PAGECOUNT")%>,
					rowList:[15,20,50,200,500],
					toolbar: [false,"top"],
					jsonReader: {
						root:"rows",		// 数据行（默认为：rows）
						page: "page",  	// 当前页
						total: "total",  // 总页数
						records: "records",  // 总记录数
						repeatitems : false		// 设置成false，在后台设置值的时候，可以乱序。且并非每个值都得设
					},
					prmNames:{rows:"rows",page:"page",sort:"sidx",order:"sord",search:"search"},
					pager:"#gridPager",
					postData : {
		     			columns : "${requestScope.columns}",
		     			tableName:"${formnew.formEnName}"
		     		},
					caption: "${formnew.formCnName}列表"									
			});
				
	}); 
	
	
	</script>	
	</head>
	<body>
	<form id="jstjForm" name="jstjForm" action="filemodeAction!exportJiShuTiaoJian.action" method="post" >
		<input id="ids" type='hidden' name="ids" />
		<input id="params" type='hidden' name="params"/>
		<input id="filemodeid" type="hidden" name="filemodeid" value="${filemodeid}" />
	</form>
	<form action="" method="post" >
		<table style="width: 100%;" class="tableCont">
			<tr>
				<td colspan="4">
					<table id="gridTable"></table>
					<div id="gridPager"></div>
				</td>
			</tr>
		</table>
		</form>
	</body>
</html>
